package com.numberone.system.domain;


import com.numberone.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 购物车表 cart
 * 
 * @author numberone
 * @date 2020-09-29
 */
public class Cart extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 购物车表 */
	private Long id;
	/** 用户id */
	private Long userId;
	/** 店铺id */
	private Long shopId;
	/** 店铺名 */
	private String shopName;
	/** 商品id */
	private Long goodId;
	/** 商品名 */
	private String goodName;
	/** 商品规格尺码 */
	private String goodStandard;
	/** 商品价格 */
	private BigDecimal goodPrice;
	/** 商品折扣价 */
	private BigDecimal goodDisprice;
	/** 购买数量 */
	private Integer num;
	/** 总价 */
	private BigDecimal totalPrice;
	/**选择颜色**/
	private  String goodColour;
	/**商品图片**/
	private  String goodUrl;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getShopId() {
		return shopId;
	}

	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public Long getGoodId() {
		return goodId;
	}

	public void setGoodId(Long goodId) {
		this.goodId = goodId;
	}

	public String getGoodName() {
		return goodName;
	}

	public void setGoodName(String goodName) {
		this.goodName = goodName;
	}

	public String getGoodStandard() {
		return goodStandard;
	}

	public void setGoodStandard(String goodStandard) {
		this.goodStandard = goodStandard;
	}

	public BigDecimal getGoodPrice() {
		return goodPrice;
	}

	public void setGoodPrice(BigDecimal goodPrice) {
		this.goodPrice = goodPrice;
	}

	public BigDecimal getGoodDisprice() {
		return goodDisprice;
	}

	public void setGoodDisprice(BigDecimal goodDisprice) {
		this.goodDisprice = goodDisprice;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public BigDecimal getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}

	public String getGoodColour() {
		return goodColour;
	}

	public void setGoodColour(String goodColour) {
		this.goodColour = goodColour;
	}

	public String getGoodUrl() {
		return goodUrl;
	}

	public void setGoodUrl(String goodUrl) {
		this.goodUrl = goodUrl;
	}

	@Override
	public String toString() {
		return "Cart{" +
				"id=" + id +
				", userId=" + userId +
				", shopId=" + shopId +
				", shopName='" + shopName + '\'' +
				", goodId=" + goodId +
				", goodName='" + goodName + '\'' +
				", goodStandard='" + goodStandard + '\'' +
				", goodPrice=" + goodPrice +
				", goodDisprice=" + goodDisprice +
				", num=" + num +
				", totalPrice=" + totalPrice +
				", goodColour='" + goodColour + '\'' +
				", goodUrl='" + goodUrl + '\'' +
				'}';
	}
}
